package com.zjhd.sealcutting.exception;

/**
 * TODO  异常处理类
 *
 * @author wangchao
 * @version 1.0
 * @date 2020/11/24 11:40
 */
public class BizException extends RuntimeException{

    private static final long serialVersionUID = 1L;

    /**
     * 错误码
     */
    protected String responseCode;
    /**
     * 错误信息
     */
    protected String responseMessage;

    public BizException() {
        super();
    }

    public BizException(String responseCode, String responseMessage) {
        super(responseCode);
        this.responseCode = responseCode;
        this.responseMessage = responseMessage;
    }

    public String getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(String responseCode) {
        this.responseCode = responseCode;
    }

    public String getResponseMessage() {
        return responseMessage;
    }

    public void setResponseMessage(String responseMessage) {
        this.responseMessage = responseMessage;
    }

    @Override
    public Throwable fillInStackTrace() {
        return this;
    }
}
